<!-- 触发器 -->
<template>
  <div class="tab4">
    <!-- 按纽栏组件 -->
    <div class="button-group">
      <a-button type="primary" icon="plus" class="icon-button">新增</a-button>
      <a-button icon="edit" class="icon-button">编辑</a-button>
      <a-button icon="delete" class="icon-button">删除</a-button>
    </div>
    <!-- 触发器表格 -->
    <el-table
      :data="tab4TableData"
      highlight-current-row
      border
      height="calc(100% - 42px)"
      :row-style="{height:'40px'}"
      :cell-style="{padding:'0px'}"
      :header-cell-style="{background: '#FAFAFA', padding: 0, height: '40px', color: '#666666'}"
      style="width: 100%">
      <slot v-for="(item,index) in tab4Columns">
        <el-table-column
          :key="index"
          :property="item.field"
          :label="item.title"
          :width="item.width"
          show-overflow-tooltip
          sortable>
        </el-table-column>
      </slot>
    </el-table>
  </div>
</template>

<script>
export default {
  name: '',
  components: {
  },
  data () {
    return {
      tab4TableData: [],
      tab4Columns: [
        {
          title: '顺序号',
          field: 'T_Index'
        },
        {
          title: '类型',
          field: 'T_Type'
        },
        {
          title: '是否启用',
          field: 'T_Enabled'
        },
        {
          title: 'T_SQL',
          field: 'T_SQL'
        }
      ]
    }
  },
  created () {},
  mounted () {},
  methods: {}
}
</script>

<style lang="less" scoped>
.tab4 {
  height: 100%;
  padding: 15px;
  .button-group {
    margin-bottom: 10px;
  }
}
</style>
